<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var name = 'window';
        function Student(name) {
            this.name = name;
            this.age = 30;
            this.say = function () {
                alert(this.name + 'can say!');
            }
        }
        // var zs = new Student('张三');
        // zs.say();

        Student('张三');
        console.log(name);
        console.log(age);
        console.log(say());
    </script>
</body>
</html>